import React, { useEffect, useState } from 'react';
import PageSemIrSearch from '../Components/PageSemIrSearch'
import { useTranslation } from 'react-i18next';
import { apiSearchIrList, apiSearchIrFilter } from '../../../services/search/ir';

const Ir = () => {
  const { t } = useTranslation();
  const methodList = [
    {
      value: '1',
      label: t('search.euclidean'),
    },
    {
      value: '2',
      label: t('search.intersection'),
    },
    {
      value: '3',
      label: t('search.cosine'),
    },
    {
      value: '4',
      label: t('search.KL'),
    },
  ];
  return (
    <>
      <PageSemIrSearch
        pageTitle={t('search.irSearch')}
        page="IR"
        methodList={methodList}
        apiFilter={apiSearchIrFilter}
        apiList={apiSearchIrList} />
    </>
  )
}

export default Ir;